const path = require("path")
const HtmlWebpackPlugin = require("html-webpack-plugin")
const htmlPlugin = new HtmlWebpackPlugin({
    template:path.join(__dirname,"./src/index.html"),
    filename:"index.html"
})

module.exports = {
    mode:"development",
    plugins:[
        htmlPlugin
    ],
    module:{
        rule:[
            {
                test:/\.js|jsx$/,
                use:"babel-loader",
                exclude:/node_modules/
            }
        ]
    },
    devtool:"inline-source-map"
}